﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.TeamFoundation.WorkItemTracking.Client;
using Microsoft.Office.Interop.Word;
using System.Windows.Forms;

namespace WordTemplate1.Objets
{
    public class EAPicture : Element
    {
        
        /// <summary>
        /// Piece jointe d'un workitem
        /// </summary>
        public Attachment Attachement { get; set; }


        public EAPicture(Attachment attachement)
            : base()
        {

            this.Type = TypeElement.Picture;
            this.wdContentControl = WdContentControlType.wdContentControlPicture;
            this.Attachement = attachement;
            this.Tree = new TreeNode(this.Attachement.Name, 3, 3);
            this.Tree.Tag = this;
        }
    }
}
